package com.mg.yygh.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mg.yygh.enums.PaymentTypeEnum;
import com.mg.yygh.model.order.OrderInfo;
import com.mg.yygh.model.order.PaymentInfo;

import java.util.Map;

/**
 * @author M_Dragon
 * @date 2022/9/30/030 17:29
 */
public interface PaymentService  extends IService<PaymentInfo> {
    // 向支付表添加信息
    void savePaymentInfo(OrderInfo orderInfo,Integer status);
    // 支付成功,更新订单状态
    void paySuccess(String out_trade_no, Map<String, String> resultMap);
    // 获取支付记录
    PaymentInfo getPaymentInfo(Long orderId, Integer paymentType);
}
